Telegram Group & Telegram Channel
Found very intersting approach to count the digits of an integers #python:

from math import floor, log10


def count_digits(n):
return 1 + floor(log10(n))

In [2]: count_digits(5)
Out[2]: 1

In [3]: count_digits(999)
Out[3]: 3

In [4]: count_digits(1000)
Out[4]: 4



tg-me.com/python_programming_challenges/74
Create:
Last Update:

Found very intersting approach to count the digits of an integers #python:

from math import floor, log10


def count_digits(n):
return 1 + floor(log10(n))

In [2]: count_digits(5)
Out[2]: 1

In [3]: count_digits(999)
Out[3]: 3

In [4]: count_digits(1000)
Out[4]: 4

BY 馃嚭馃嚘 Python Programming 小hallenges


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_programming_challenges/74

View MORE
Open in Telegram


馃嚭馃嚘 Python Programming 小hallenges Telegram | DID YOU KNOW?

Date: |

What is Secret Chats of Telegram

Secret Chats are one of the service鈥檚 additional security features; it allows messages to be sent with client-to-client encryption. This setup means that, unlike regular messages, these secret messages can only be accessed from the device鈥檚 that initiated and accepted the chat. Additionally, Telegram notes that secret chats leave no trace on the company鈥檚 services and offer a self-destruct timer.

A Telegram spokesman declined to comment on the bond issue or the amount of the debt the company has due. The spokesman said Telegram鈥檚 equipment and bandwidth costs are growing because it has consistently posted more than 40% year-to-year growth in users.

馃嚭馃嚘 Python Programming 小hallenges from ar


Telegram 馃嚭馃嚘 Python Programming 小hallenges
FROM USA